package s01;

/**
 * @ClassName Demo01
 * @Description TODO
 * @Author Li
 * @Date 2022/8/14 18:10
 * @ModifyDate 2022/8/14 18:10
 * @Version 1.0
 */
public class Demo01 {
    public static void method(Printable p){
        p.myPrint("Hello World!");
    }

    public static void main(String[] args) {
        method(s-> System.out.println(s));
    }
}
